<!-- include tpl=usercp/head title=订单列表 -->
<div class="container-fluid no-gutters main layout-main">
	<!-- include tpl=usercp/sidebar -->
	<div class="layout-right">
		<!-- include tpl=usercp/header -->
		<div class="layout-body">
			<div class="card">
				<div class="card-header">
					订单列表
				</div>
				<div class="card-body">
					<table class="table table-striped table-hover">
					<tr>
						<th>订单编号</th>
						<th>下单时间</th>
						<th>数量</th>
						<th>金额</th>
						<th>审核</th>
						<th width="130">明细</th>
					</tr>
					<!-- loop from=$rslist key=$key value=$value -->
					<tr>
						<td>{$value.sn}</td>
						<td>{func time_format $value.addtime}</td>
						<td>{$value.qty}</td>
						<td>{func price_format $value.price $value.currency_id $value.currency_id}</td>
						<td>{$value.status_info}</td>
						<td>
							<a class="am-btn am-btn-primary am-btn-xs" href="{url ctrl=order func=info id=$value.id/}">查看</a>
							<!-- if $value.status == 'stop' || $value.status == 'received' || $value.status == 'end' -->
							<a href="{url ctrl=order func=comment id=$value.id/}" class="am-btn am-btn-default am-btn-xs">评论</a>
							<!-- /if -->
						</td>
					</tr>
					<!-- /loop -->
					</table>
					<div class="mt-3">
						<!-- include tpl=usercp/pagelist -->
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- include tpl=usercp/foot -->